package com.qs.eggs.adapter;

import android.content.Context;

import com.facebook.drawee.view.SimpleDraweeView;
import com.qs.eggs.R;
import com.qs.eggs.bean.Fenlei_items;

import java.util.List;

public class CategorySecondmenuAdapter extends SimpleAdapter<Fenlei_items> {



    public CategorySecondmenuAdapter(Context context, List<Fenlei_items> datas) {
        super(context, R.layout.item_category_secondmenu, datas);
    }



    @Override
    protected void convert(BaseViewHolder viewHoder, Fenlei_items item,final int posion) {
           viewHoder.getTextView(R.id.tv_proname).setText(item.getProname());
        //  viewHoder.getTextView(R.id.text_price).setText("￥"+item.getPrice());
         SimpleDraweeView draweeView = (SimpleDraweeView) viewHoder.getView(R.id.drawee_view);
         draweeView.setImageURI(item.getPicname());

    }
}
